// 条件分支

let age = prompt("How old are you?", 18);

let accessAllowd = (age > 18) ? true : false;

let company = prompt("Which company created JavsScript?", "");

(company == 'Netscape') ? alert('Right!') : alert('Wrong!');


if (company == 'Netscape') {
    alert('Right!');
} else {
    alert('Wrong!');
}